package com.sinaapp.zhangziyou.dao;

import com.sinaapp.zhangziyou.pojo.MainEntity;

public interface MainDao {
	MainEntity getById(String id);

	MainEntity getByLink(String link);

	MainEntity getByTitle(String title);

	void update(MainEntity mainEntity);

	void deleteById(String id);

	void delete(MainEntity mainEntity);

	void save(MainEntity mainEntity);
	
	int isExist(String linkMd5);
}